package cn.bjc.feign;

import cn.bjc.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("store-service")
@RequestMapping("/store")
public interface StoreFeignService {

    @GetMapping("/getById/{id}")
    Store getById(@PathVariable("id") Long id);

    @PostMapping("/add")
    Map<String,Object> add(@RequestBody Store store);
}
